package com.jet.merchant.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jet.core.model.vo.PageVo;
import com.jet.merchant.domain.dto.MerchantDto;
import com.jet.merchant.domain.dto.RegisterDto;
import com.jet.merchant.domain.entity.Merchant;
import com.jet.merchant.domain.query.MerchantQuery;
import com.jet.merchant.domain.vo.MerchantVo;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author author
 * @since 2025-02-14
 */
public interface IMerchantService extends IService<Merchant> {

    void register(long merchantNo, long storeNo, String accountId, RegisterDto dto);

    void edit(long merchantNo, MerchantDto dto);

    void editMerchantName(long merchantNo, String merchantName);

    Merchant findByMerchantNo(long merchantNo);

    boolean existsMerchantNo(long merchantNo);

    MerchantVo merchantInfo(long merchantNo);

    PageVo<Merchant> page(MerchantQuery query);
}
